home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.app;
-
- import java.awt.event.ActionEvent;
- import javax.swing.AbstractAction;
-
- public class BaseUndoManager$UndoAction extends BaseAction {
- // $FF: synthetic field
- final BaseUndoManager this$0;
-
- public BaseUndoManager$UndoAction(BaseUndoManager var1, String var2, int var3) {
- super(var2, var3);
- this.this$0 = var1;
- }
-
- public void actionOccurred(ActionEvent var1) {
- if (this.this$0.canUndo()) {
- this.this$0.undo();
- }
-
- this.updateUndoState();
- this.this$0.redoAction.updateRedoState();
- }
-
- protected void updateUndoState() {
- if (this.this$0.canUndo()) {
- ((AbstractAction)this).setEnabled(true);
- ((AbstractAction)this).putValue("Name", this.this$0.getUndoPresentationName());
- } else {
- ((AbstractAction)this).setEnabled(false);
- ((AbstractAction)this).putValue("Name", "Undo");
- }
-
- }
- }
-